<!DOCTYPE html>
<html>
<head>
    <title>测试模板渲染</title>
</head>
<body>
    <h1>资产列表测试</h1>
    {% for asset in assets %}
    <div>
        <h3>{{ asset.name }}</h3>
        <p>编号: {{ asset.asset_number }}</p>
        <p>价格: ¥{{ asset.purchase_price|floatformat:2 }}</p>
        <p>描述: {{ asset.description|truncatechars:30 }}</p>
        <hr>
    </div>
    {% empty %}
    <p>没有资产数据</p>
    {% endfor %}
</body>
</html>